Wipro Interview Question

How to slice a array