Oracle interview question

Leet code : Arrays, HashMapping