Amdocs Interview Question

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