Maybe it's just because I do that a lot, but imo potential candidates that are HN readers already know how to do this, if there are no gotchas. I find leetcoee considerably harder.
Yeah I would be fun to do a analysis of commenters, my guess would be that people defending leetcode style interview are probably younger and people praising a real code change are older simply because that's what each group is more used to.