Microsoft Interview Question

Codility 1st question: Find repeated characters present first in a string.