Pando interview question

Write a code to match similar number in array