n8n.io Interview Question

Implement a simple game of chances in typescript, without user interactivity.