Expedia Group interview question

About Strings, Arrays and HashMap