Find solution of the example with brackets