Leetcode 3488. Closest Equal Element Queries | Hello Interview