Amdocs Interview Question

debug and build program and explain