Codewars 7 kyu solutions