MuleSoft Interview Question

Simulation of a game, with specific algorithmic rules, and an program to verify the solution