C modulo O(1)
C modulo O(1)\nCount number of whole trips.\n\n# Code\n```c []\nint numberOfChild(int n, int k) {\n    --n;\n    const int trips = k / n ;\n    const int left = k % n ;\n\n   \n\n    if ((trips & 1) == 1) { // at end\n      return n - left ;\n    } else {\n        return left;\n    }\n}\n```
['C']