Pregunta de entrevista de Zoho

to solve puzzles and analyse graph