Amdocs interview question

about collection