http://codingbat.com/prob/p257057