imac is flashing a folder with a question mark?
A folder with a flashing question mark means that your startup disk is no longer available or doesn't contain a working Mac operating system. ... Turn on your Mac and immediately press and hold Command (⌘) and R to start up from macOS Recovery. While in macOS Recovery, use Disk Utility to repair your startup disk.