Builder.ai interview question

remove duplicate from array