Solutions to codewars.com katas