Tripadvisor Interview Question

Nothing very hard...