Amdocs interview question

puzzales