my code for codejam practice