code this question pls, with fairly understandable comment http://www.cs.umanitoba.ca/perch/resources/problems2009.pdf

code this question pls, with fairly understandable comment http://www.cs.umanitoba.ca/perch/resources/problems2009.pdf