Solve bracket validator for hard case.