Test case failing - hk opq rnfjya ppgtfrotf dukt wwd fhlx kgkb tlr wjjaynx a suugrmh njihbb neo nsokbjpsj mrurpaua


#1

paua nsokbjpsj neo njihbb suugrmh a wjjaynx tlr kgkb fhlx wwd dukt ppgtfrotf rnfjya opq hk

for above test case custom input is giving the right solution in cpp. but when I submit the solution its giving following output.

hk opq rnfjya ppgtfrotf dukt wwd fhlx kgkb tlr wjjaynx a suugrmh njihbb neo nsokbjpsj mrurpaua

Here compiler is adding extra characters to the last word. dont know whats the issue.

I am not sure if there is problem with compiler or my code.


#2

same error, works fine when i enter the test case as the custom input,
devs please check