CGI interview question

Basic C program logics.