Hi SSD Zhang,
You do not need to purchase a new license to reinstall Windows. On modern computers, the original product key is injected directly into the motherboard's firmware by the manufacturer, specifically residing within the ACPI MSDM table of the UEFI BIOS. Because this activation data is physically tied to the hardware rather than the software layer, the previous owner's Microsoft account has no permanent hold on the system's core licensing.
To proceed, perform a clean installation using the official Microsoft Media Creation Tool, ensuring you install the exact same edition of Windows currently on the machine, such as Home or Pro. During setup, if you are prompted for a product key, select the option indicating you do not have one. Behind the scenes, the Windows setup environment will automatically query your motherboard's firmware to retrieve the embedded key.
Once the installation is complete and the system connects to the internet, the local Software Protection Platform service will generate a hardware hash and communicate with Microsoft's activation servers to authorize your digital entitlement. At this point, the system is fully activated and clean. You can confidently sign in using your own Microsoft account, which will permanently link the device's hardware license to your personal credentials.
Hope this answer brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.
VP