3178. Find the Child Who Has the Ball After K Seconds
Time complexity: O(1)Space complexity: O(1)Code

#  Time complexity: O(1)

#  Space complexity: O(1)

# Code
```c []
int numberOfChild(int n, int k) {
    int quo, rem, n2 = n - 1;
    quo = k / n2;
    rem = k % n2;
    if(quo % 2){
        return (n2-rem); 
    }
    else{
        return rem;
    }
}
```
['C']