Pergunta de entrevista da empresa IBM

One was a Database Query and the other was hash map question