Pregunta de entrevista de Amdocs

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