Solved isNumberBalanced problem