The way to signal SOS with a flashlight is to use morse code. Three short and rapid 1-second flashes followed by three longer 2-second flashes and finished with three rapid 1-second flashes again. This spells out S-O-S in morse code and is universally recognized to be a distress signal.