Tripadvisor interview question

Nothing very hard...