solutions for google code jam questions by myself