Pergunta de entrevista da empresa Uber

Hashmap and to find efficient implementation for a method