Which answer is correctly punctuated?

On our way to the beach we, had to stop and buy sunscreen.

On our way to the beach, we had to stop and buy sunscreen.

On our way to the beach we had to stop and buy sunscreen.

On our way, to the beach, we had to stop and buy sunscreen.

1 answer

The correctly punctuated answer is:

"On our way to the beach, we had to stop and buy sunscreen."