1
Press and hold the power button on the case of your PC for 10+ seconds to perform a hard shut down, then wait a few seconds and start your PC again, does it boot into Windows normally?
2
If not, you will need to create a bootable Windows 10 USB on another working PC and boot your PC from that, then rather than installing Windows 10, select ‘Repair this Computer’ that will give you access to the Recovery Environment from there and run the Startup Repair option.
In the Recovery Environment on the USB, you will not be blocked by a password.
Click this link: https://www.microsoft.com/software-download/windows10
to download the Media Creation Tool (Click on Download Tool Now), with that you can download the latest Windows 10 ISO (Select Create Installation Media for Another PC), you can create a bootable USB flash drive (min 8GB) using that tool
Then, Boot your PC from the Installation Media you just created (change Boot Order in your BIOS)