How To Convert Array Into Hashmap Iteration