CGI interview question

Switch case program with example and try to write a code.