Motorola Solutions interview question

Coding Challenge