sir, in this given problem, if adjacent elements are equal then we are adding s[0]+string()+res why can’t we add s[0]+""+res I tried using the latter on but its giving an error for me also in not work the " " directs adds up to string but why its not happening here.
Thanks