CGI Interview Question

given a c language logic