Added problem 2012 COJ. 08th June 2014