Restore Samsung Galaxy S II via PC
In short try booting into recovery, by pressing and holding home, power and volume down. Wipe user data. Then use Odin to reflash. The OEM firmware can be downloaded from Samsung.  

Follow the guide on this link. https://www.cnet.com/how-to/how-to-recover-a-bricked-samsung-galaxy-s2/