University of Waterloo Midterm Examination Sample Solution Winter, 2012