ION Group Interview Question

Camel and bananas puzzle, OOPS questions, easy DSA problem