Nearest equal element

Problem Name:
Nearest equal element
Site:HackerEarth
Links:
Tags: