Atos interview question

Hash map problem on an array