Completed squareDigits. Codewars challenge. 7 kyu.