Lyft interview question

Phone Interview: DP + Probability question