Direct Supply interview question

Use case of solving an array problem.