This was a pair programming session with a Ruby engineer. They allow you to use your own laptop which was great but you only get 30 minutes to finish the problem with working unit tests.
I think they re-use this pair programming problem so I'm not going to divulge details here. But it wasn't a particularly hard problem, they just want you to see how you code and test. Do not forget to write unit tests! Ideally you would develop it in a TDD fashion.
1) bigger value will be returned, 2) b is assigned to a if a is nil or false, 3) Boolean value will be returned based on the value of a and b(if any of a or b is nil or false false will be returned Less