The exam usually specifies a fixed BUFFER_SIZE (often 1 or 42). Use a static variable to store remainders between calls.
What's missing / could improve