Expedia Group interview question

Easy leetcode ques...array + stings