Optimize switching puzzle solution | Optiver