Amdocs interview question

Querys de DB