I have written a code for the above Problem. During test, it shows wrong output but when i run the same as a cstom input, it shows correct output. please see to it. Attaching screenshot for validation.
Yes same issue. For A =1 I return ‘1 1’ and it fails on that. Where as in custom run it passes.