[arrays] How to print the values of slices