Amazon Interview Question

How to implement a function that took out letters in a word which were multiples