Direct Supply Interview Question

Use case of solving an array problem.