Amazon interview question

Some LCs based on arrays