Cadence Design Systems interview question

The code test was a maths problem.