Solutions for topcoder practice sets