linear time

linear time to get twosum