A solved question from the Fall 2014 CS-3 technical exam provided as a sample.