If the PC did not come with windows and you need a fresh copy, have a look a sites like https://softwaregurus.co.uk/ you just buy the licence from them cost £17.99 for Home £19.99 for professional (all legit, I have used them a couple of times now with no issues).
You then create a windows media device (i.e a usb stick with the msi files on (very simple to do) and install from that.
A lot cheaper than buying a "boxed" version which I believe can be around the £100 mark.