'Balancing Brackets' solved