Amdocs interview question

debug and build program and explain