One more codewars solution.