Tripadvisor interview question

A/B test question with OOP design.