MathWorks Interview Question

I was asked to write MATLAB code that will display a player's winnings based on a complex set of game rules.