CGI Interview Question

var input= "google"; // output=go SQL -group by question