A row of slot machines, each paying 1 (a win) or 0 per play. You know each machine’s average_wins so far, how many plays it has had, and total_plays across all of them. Write pick_machine(average_wins, plays, total_plays): which machine to play next, as its position (0 for the first), so that over many plays you win as much as you can.