Get Subarray From Array To Hashmap Internally Works