Nest Interview Question

Debug and correct a small C program