Airbnb interview question

Simple javascript question No algo or DS