Quince interview question

Leetcode: koko eats bananas problem