Riva International interview question

Difference between HashMap and Arrays ?