While I am going through a question in hackerrank. I wrote imperfect code and I got the wrong answer for it but I wonder how I got that Note: I know that by changing the ret