Pergunta de entrevista da empresa I am Student

Write a program to split the array.