Implement print_array_rec()