Dell Technologies interview question

Two sum and binary search