Solved Two Sum problem