Motorola Solutions Interview Question

Java fundamentals, Algorithm