Solved First Problem in Topcoder