Solved Filling Jars

Tried the naive way with arrays at first; realized each individual jar
does not matter.