Amdocs interview question

2 code was asked along with debugging question A problem was asked.