GlobalLogic Interview Question

One Code on arrays was asked.