A suggestion. Create two functions, dot and dash.
Make dot flash the led quickly, and wait for the between signals time.
Make dash flash the led for longer, and wait for the between signals time.
Then, create functions for letters. S should call dot and/or dash as appropriate, in the correct order. O should do likewise.
Then, loop can look like this:
void loop()
{
S();
O();
S();
delay(1000); // Wait for help
}