Find the nearest clone

Problem Name:
Find the nearest clone
Site:HackerRank
Links:
Tags:
Problem setters: