solved isNumberBalanced