Hippodrome Casino interview question

Math questions