Viridien Interview Question

Probability, trigonometric computations, computing periodicity