Hi Babjee, i did so, the issue is its not checking the number occurrences of special character in the string instead its simply increasing the count as string contains special character. It went into infinite loop.
Thanks for taking time in answering. Appreciated.