Pregunta de entrevista de Cisco

Array based question mid level difficulty