Taking a stab at the Hacker Olympics Invitational Problem Set