Solution to canBalance problem using Javascript

Published --