CGI interview question

Create a function that calculates a given equation from the command line