Find The Secret Flag

Anyone have any suggestions for this one? Most seem to be stuck at the same spot and have found a way to either print the “–hit any key” or “are you sure its the right one”. I can’t seem to figure out exactly what’s going on with this. I know you can change the input in a couple ways and redirect to other functions but haven’t come up with anything that produces the flag