Add solution for canBalance