What's wrong with my code?

What’s wrong with my code?

hello @priyamthakuria27
ur string is of empty and u cannot store any character in empty string.

use char array of some size to use indexing

check ur updated code->https://ide.codingblocks.com/s/283780

check this code once?

this looks correct ,try submitting it

Showing WA on all test cases.

won’t you respond to my doubt?