Expedia Group interview question

2 sum, replace linked list