Practice problems from HP Code Wars 2014. (http://www.hpcodewars.org/?page=cw17samp)