Hi,
Thanks for your reply. The output of the program is exactly correct which I have checked against the manual work. The performance issue can arise when my given input string is more than 1000 characters. Can you please suggest me, how to improve the performance inside the loops ?
- kulls