Solved isBalanced, leadingDigit, remAin.