Amdocs interview question

asked some normal puzzles