Pergunta de entrevista da empresa Amazon

Asked to rearrange an array such that no 2 adjacent elements are same.