Qlue interview question

Remove duplicate words from the string