I have 2 sets of button, how can I arrange them for best user experience?

I have 2 sets of buttons on a pop-up box of a website. Set 1 consists of multiple options the user can choose from, i.e. option 1, option 2, etc. Another one is "Back" "Next" "Start over". What will be the best arrangement for the buttons? I have tried the 2 arrangements. I have attached the images. Please tell me if it's fine or there is a much better way to arrange the button. Thank you.

1.enter image description here

2.enter image description here