Pregunta de entrevista de Verily

It was a array operation question