Yes.Yes, tried both option but no luck. Somehow I was able to erase the HDD and now it just booting with a question mark on folder and I can't enter into any recovery
If you were able to erase the HDD, that means that everything is gone. If you erased the drive from Internet Recovery, then the Recovery partition should ALSO be gone.
The flashing folder simply means that there is NO system on the drive, which would be correct.
If you have a macOS installer on a USB drive, then boot to that, and reinstall that system.
If you don't have an external drive, or thumb drive with a bootable installer, then boot back up to Internet Recovery.
That's a restart while holding Option-Command-r. You will see a spinning globe, instead of the normal Apple icon.
Get to the menu, then choose Reinstall macOS (Reinstall OS X on an older system), and - let that complete. That will download the installer files, then restart to complete an install. It will probably take nearly an hour, maybe longer.
Internet Recovery may install a system that is older than what you had installed. No problem with that, you will be able to update to High Sierra, if that is not the system that is installed through Internet Recovery.