Pregunta de entrevista de Amdocs

asked some normal puzzles