topcoder exercise