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.
Tiresome puzzle questions. Recommend looking up the standard ones and their solutions (no, these don't make someone a better software designer or programmer - they're a waste of time).
Be prepared for a programming exercise as usual, but be prepared to ask for it in a font/format that's easier to read than Arial or whatever variable-spacing font was used, and without line-wraps. I got the impression that the printout was an afterthought, and the level of interest of the interviewer was minimal
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 Minder