AirFi interview question

Traverse a Array to find duplicates, angular & JS basics