Viridien interview question

probability