Pregunta de entrevista de Synechron

Coding question related to array.