ESSPL interview question

C code