Pergunta de entrevista da empresa Contentsquare

On the case study, I was asked to use any programming language to solve a problem. The problem was to find the best data structure to store a file and make certain queries. (Without using any libraries)