Add solution and tests for isNumberBalanced