solve 'Jeff and Brackets'