Cadence Design Systems interview question

Dising another game - also recursive solution.