3 simple questions

remove duplicate and minimum window