I am Student Interview Question

Write a program to split the array.