Sponsored
Use these hints if you're stuck. Try solving on your own first.
Loop in both directions until you find the target element.
For each index i such that nums[i] == target calculate abs(i - start).
Solve with full IDE support and test cases