my code for google code jam competition