Anuj Quiz

Got stuck on the first one, probably not the best use of my time on this test. Spent nearly 15 minutes trying to get one thing working. The first part of the first problem worked, but then I realized that I hadn't set the function up properly for the 2nd and 3rd part of the 1st problem to work properly. I don't think I'd have a problem getting the rest done, though the code I have is pretty messy now.