Trimble MAPS interview question

Writing code