Pregunta de entrevista de ARCON TechSolutions

Array code, which was little bit tricky