LeadSquared interview question

find a small non repeating integer in an array