Leetcode 1848. Minimum Distance to the Target Element | Hello Interview