How can I remove single substrings like a,b,c?
hello @supratik260699
u only need to handle digit=0 case .
for that ur if statement should look like.

actually in output they are considering space as well so no need to handle digit 0 separately .
so remove that if statement and let ur for loop handle everthing .
1 Like