Getting wrong answer

copied sir’s code from the link modified the i/p
wrong o/p

The output is correct. It must be 7. and the substring is defcghi

1 Like