This challenge was posted by Groupon.

http://i.minus.com/i9wQVq2oFN0mm.png

--

This isn't an algorithmic problem. Therefore, I think it's quite simple. My solution was in PHP:


<?php