Airbnb Interview Question

The overall coding challenge is not difficult