Amdocs interview question

Regarding project