CGI interview question

given a c language logic