Pregunta de entrevista de I am Student

Write a program to split the array.