Leetcode Array And Hashing Problems With Preservision