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 requested a re-invite. You can contact your recruiter by simply replying to the test invitation mail.
Note: Sometimes, a browser-level cache may disallow you from logging in to the test again when you are asked to retake a particular test. It is recommended that you access the test link using a new browser window to overcome this issue.