Well done! That's the right answer.
Hint



Test
Empty
Nearly full
full
Empty
Nearly full
full
Empty
Nearly full
full
Empty
Nearly full
full