Leetcode 3159. Find Occurrences of an Element in an Array | Hello Interview