{
  "app": {
    "name": "Mokabla",
    "url": "https://www.mokabla.com",
    "description": "Real interview questions from companies in Egypt, organised by company. Access is sold per company for 30 days."
  },
  "page": {
    "kind": "question",
    "title": "Question · nim-game",
    "humanPath": "/en/c/incorta/nim-game",
    "humanOnly": false
  },
  "identity": {
    "class": "declared",
    "agent": "ClaudeBot",
    "operator": "Anthropic",
    "verified": false,
    "reason": "The user agent is ClaudeBot (Anthropic), which identifies itself as an AI agent.",
    "signals": [
      "Known agent user agent"
    ],
    "claimable": false
  },
  "state": {
    "question": {
      "slug": "nim-game",
      "title": "Nim Game",
      "difficulty": "easy",
      "tags": [
        "coding",
        "algorithms-theory",
        "technical",
        "swe",
        "intern"
      ],
      "is_free": true,
      "locked": false,
      "frequency": 0.333,
      "last_reported_at": "2025-07-21T17:12:58.568788Z",
      "url": "https://www.mokabla.com/en/c/incorta/nim-game",
      "agent": {
        "page": "https://www.mokabla.com/agent/en/c/incorta/nim-game",
        "question": "https://www.mokabla.com/agent/_call/get_question?company=incorta&question=nim-game"
      },
      "company": {
        "slug": "incorta",
        "name_en": "Incorta"
      },
      "body_md": "## What they ask\n\nA heap holds `n` stones. You and the interviewer take turns, and on every turn a player must remove 1, 2 or 3 stones. Whoever removes the last stone wins. You always move first, and both sides play perfectly. Write a function that returns `true` if you can force a win for a given `n`.\n\nThey usually let you brute-force it first with recursion or a small DP table, then ask you to look at the table and find the pattern.\n\n## Examples\n\n- `n = 4` returns `false`: whatever you take (1, 2 or 3), the opponent takes the rest and wins.\n- `n = 1`, `n = 2`, `n = 3` all return `true`: you just take everything.\n- `n = 7` returns `true`: take 3, leave 4, and now the opponent is in the losing position above.\n\n## Constraints\n\n- `1 <= n <= 2^31 - 1`, so an O(n) table will not pass the largest inputs.\n\n## What they look for\n\n- Noticing that every multiple of 4 is a losing position and being able to say why (from any non-multiple of 4 you can always hand the opponent a multiple of 4, and from a multiple of 4 you cannot).\n- A one-line O(1) answer after the reasoning, not before it.\n- Clean explanation out loud; this was a 30-minute intern round and the interviewer cared more about the argument than the code.",
      "follow_ups_md": "- What changes if a player may take 1 to `k` stones instead of 1 to 3?\n- What if the player who takes the last stone loses instead of wins?\n- Prove the multiple-of-4 rule by induction on `n`."
    },
    "paid": false,
    "access": "Question bodies are paid content: a person buys 30 days of access per company (200 EGP or 200 points) in the human app. Agents get titles, tags and difficulty; bodies only for free questions."
  },
  "actions": [
    {
      "name": "get_question",
      "description": "One question with its body. Bodies are paid content unless the question is free.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "question": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/get_question?company=incorta&question=nim-game",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "list_questions",
      "description": "The questions reported at a company: titles, tags, difficulty, whether each is free or paid.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "page": "number?"
      },
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=incorta",
      "ready": true,
      "missing": []
    },
    {
      "name": "buy_access",
      "description": "Buy 30 days of access to a company.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "payment",
      "input": {
        "company": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/buy_access?company=incorta",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "post_comment",
      "description": "Comment on a question.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "write",
      "input": {
        "question": "string",
        "text": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/post_comment?question=nim-game",
      "ready": false,
      "missing": [
        "text"
      ],
      "humanPath": "https://www.mokabla.com/en/companies"
    }
  ],
  "navigate": [
    {
      "label": "This question, as data (free questions only)",
      "href": "https://www.mokabla.com/agent/_call/get_question?company=incorta&question=nim-game"
    },
    {
      "label": "All questions at this company",
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=incorta"
    },
    {
      "label": "The company page",
      "href": "https://www.mokabla.com/agent/en/c/incorta"
    },
    {
      "label": "Nim Game · page",
      "href": "https://www.mokabla.com/agent/en/c/incorta/nim-game"
    }
  ],
  "notices": [
    {
      "severity": "info",
      "message": "This classification is final for the session: it came from a strong signal, not a guess. The human pages are not served to agents."
    },
    {
      "severity": "info",
      "message": "Unverified agents are read-only. Signed requests (Web Bot Auth) are the path to write access."
    }
  ],
  "meta": {
    "requestId": "ag_fb70b07c9e44",
    "policyVersion": "mokabla-2026-11-03",
    "generatedAt": "2026-11-03T17:42:13.944Z",
    "jsonUrl": "https://www.mokabla.com/agent/en/c/incorta/nim-game?format=json",
    "manifestUrl": "https://www.mokabla.com/.well-known/agentgate.json",
    "humanUrl": "https://www.mokabla.com/en/c/incorta/nim-game",
    "humanClaimUrl": "https://www.mokabla.com/agent/_claim/human?to=%2Fen%2Fc%2Fincorta%2Fnim-game"
  }
}