The company which sent you the HackerRank Test invite owns your Test submissions and results. It’s their discretion to permit a reattempt for a particular Test.
If you wish to retake the Test, we recommend that you contact the concerned recruiter who invited you to the Test and request for a reinvite.
Note: In a scenario where you are asked to retake a particular Test, sometimes, a browser level cache may disallow you from logging in to the Test again. To overcome this issue, it is recommended that you access the Test link using a new browser window.
Reference topic: What happens if I am locked out of my account during a test