CGI Interview Question

Basic C program logics.