Install windows on used laptop?

i just bought a used hp laptop from ebay. it says no OS installed and "COA Code for Windows 8 Professional Embedded in the BIOS." What are my options on how I can acquire and install windows (doesn't have cd drive)? Windows 8 and 10 are fine but 10 is ideal.
4 answers 4