Infosys Interview Question

Coding problem was To find the letters repeated in the given word