I didn’t know where to post this, but long story short, this solution for it’s problem is wrong.
Yes, Indeed this is incorrect solution. Currently its failing (as it should). We’ll get it removed. This is 8 months old. That time, it might got accepted due to weak test cases. Thanks for pointing out.