Pergunta de entrevista da empresa IBM

Basic array manipulation questions and one about implementing hashmaps.