Intelliswift interview question

Coding and basic node js question