Fill Jar Problem With Large Input

This is solution for the similar problem Fill Jar that take large inputs
from the user