If you have no standing (as a junior) then sure, but as a senior, you can simply ask previous employers. If that’s not enough then indeed, I will refuse. I am not going to solve some crappy leethcode crap just because they are paranoid.
Lots of employers will not answer to that request for various reasons. So you may get a phone number of a buddy of the candidate that will tell you he was stellar.