LuxuryEscapes interview question

Some basic array looping to avoid big o notation