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.