topcoder problem 6086 completed