You should either download or copy windows installations set up from your friend with a usb drive.
Copy the setup to your Desktop
Open the windows setup folder and double click on the installation icon.
It will install and overwrite your existing operating system files.
This will work on windows 7, 8 and 10 but not Xp or vista.
Please comment f you need further help