CGI interview question

Asked to code something and discuss it.