Motorola Solutions interview question

Coding and logic question were asked