decoder for dailyprogrammer

I didn't actually end up submitting this exact code, but that was half the fun ;).