googlecodejam and hackerrank initial code