Amazon interview question

Finding odd element out in array