Hi:
You will have to install a new hard drive and reinstall the operating system.
Below is the link to the service manual where you can find the hard drive removal and replacement procedure.
http://h10032.www1.hp.com/ctg/Manual/c04763999
After you replace the hard drive you can reinstall W10 for free.
Use the Media creation tool from Microsoft to create bootable installation media.
https://www.microsoft.com/en-us/software-download/windows10
If you are asked to enter a product key during the installation process, select the 'I don't have a product key' option.
After W10 has completed installing, you can install the drivers and available software from your notebook's support page.
https://support.hp.com/us-en/drivers/selfservice/hp-15-f300-notebook-pc-series-touch/8961458/model/1...