Go to myaccount.google.com and de-authorize it. This is done in the Sign in & Security section, find the Device activity & notifications link. If you've given a computer access to your account, it's technically not hacking your account.
I suggest setting up 2-factor authentication. I need to do this for my mom, she keeps getting notifications that someone is trying to log in to her account but Google blocked them.