Which one of the following sentences is correct? and why?
1- " The protocol ensures that only when all the clients agree can the server compute the result "
2-" The protocol ensures that only when all the clients agree the server can compute the result "
"The protocol ensures that only when all the clients agree can the server compute the result."
"The protocol ensures that only when all the clients agree the server can compute the result."