Amdocs Interview Question

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