{
  "id": "cb-05",
  "name": "min_bracket_removals",
  "passed": true,
  "grade_detail": "all asserts passed",
  "wall_s": 4.3,
  "usage": {
    "completion_tokens": 205,
    "prompt_tokens": 123,
    "total_tokens": 328,
    "completion_tokens_details": null,
    "prompt_tokens_details": null,
    "reasoning_tokens": 117
  },
  "answer": "\n\n```python\ndef min_bracket_removals(s):\n    balance = 0\n    removals = 0\n\n    for ch in s:\n        if ch == '(':\n            balance += 1\n        elif ch == ')':\n            if balance > 0:\n                balance -= 1\n            else:\n                removals += 1\n\n    return removals + balance\n```",
  "finish_reason": "stop"
}