Gemini Solutions interview question

remove duplicate from an array