Solution to Programming challanges of Coderbyte http://coderbyte.com/