Jio interview question

Working of hashmap and array list