Viridien Interview Question

The first question is about probability.