Fourth task work with array