Alarm.com interview question

String and Array Manipulation