Amdocs interview question

Database