Comments

Consider a'=5 and b=10, taking b'=12 would be optimal as the value of a'|b' will be 13. But if you take b'=10, the value of a'|b' will be 15

They meant no two same operations can be performed consecutively

Ratings updation will take some time

Did the same mistake