Amdocs interview question

1 program: Find second repeatative character in string. Just approach.