Checking in first homework of Algorithms class of coursera