Baker Hughes Interview Question

Print the elements of an array from index value 2 to index value 5.