Amazon Interview Question

Some LCs based on arrays