Take the number, halve it, then halve it again, and return the result. These are whole numbers, so anything left over is thrown away each time — and that means halving twice is not always the same as dividing by four.
int quarter(int n)
Examples
There are also 4 hidden tests you can't see. Solve the problem, not the examples.