Avanza Interview Question

remove duplicate words from string