OTIS interview question

Debug this simple C code and fix all the bugs