[Code Jam] Store Credit Problem