How many toffees?

Problem Name:
How many toffees?
Site:HackerEarth
Links:
Tags:
Problem setters: