Giftcards.com Interview Question

Nothing too difficult here.