Solutions to a few Google CodeJam Problems