Brackets solution