Interview questions on data manipulation

1)If there is a word Mississippi, remove all the letters from word .
2)If there is reoccurring letters in a sentence remove those.