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 requests a re-invite. You can contact your recruiter by simply replying to the test invitation mail.
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.