Expedia Group interview question

Code up the two-sum problem