Viridien interview question

Probability, trigonometric computations, computing periodicity