kata from http://www.codewars.com/