Added another solution of test round 2013 (but solved after the contest was over)