Airbnb Interview Question

Simple javascript question No algo or DS