Custome test output is different from Test output , EDIT: Issue resolved

Tags: #<Tag:0x00007f182617dca8>


So when I am running my code with custom test input of 2, my function is returning the correct value [1,1], but returning [1,2,1] when clicking on Test button.
Any idea why is this happening?

EDIT: Sorry about the post. The issue has been resolved.