How do I stop search engines (e.g. Google) from linking my HackerEarth user profile?

You can prevent this from happening by turning off your public profile from Account Settings.

Once your public profile is turned off, only other logged-in users will be able to see your profile. Users who haven’t logged in and search engines will get a 404 (server not found) error.