StackAdapt interview question

A question on Conditional probability