Pregunta de entrevista de Epic

Algorithm to output a array with out current index