That depends on how old your Mac is. If you restart your Mac while holding Command+R and see if you boot to the recovery partition. If you do then you can download the newest OS X from the App store and clean install it, if you don’t have a recovery partition because your Mac is older than 2012ish, then you will need…