Pergunta de entrevista da empresa SAP

I don't exactly remember but it was a question on finding strings within a collection that started with a certain substring. And a follow-up question on which data structure could be used for efficiency.