Infogain Interview Question

program on string operations