Expedia Group Interview Question

Remove duplicate from a vector, then think about how to optimize it.