What is the version of the following sentence with correct punctuation?

Processes that took place during before and just after the Big Bang in the state of matter and energy that had been situated there
Processes that took place during, before and just after the Big Bang in the state of matter and energy that had been situated there.