Why my solution is showing Run time error?


hello @Prabhleen_sheenu
pls save ur code here ->https://ide.codingblocks.com/
and then share the link with me

handle the case if n==0 . then return empty string

Done Thank you Sir :slight_smile:
Pr isme Rte kyun aarha tha ?

image
iski wajah se.

str is empty but u r accessing 0 th element

1 Like

ohh okay Thank you !!