Spotify interview question

Probability questions