It could be that there was a virus on the flash disk. Please provide clear information about what happens when you turn on the PC. This will be essential for providing you the right solution. If you are able to access to Windows in safe, please have the system restored.
Thanks in advance.