/* Given an int array length 3, if there is a 2 in the array immediately * followed by a 3, set the 3 element to 0. Return the changed array. */ public int[] fix23(int[] nums) { for(int i = 0; i < nums.length - 1; i++) { if(nums[i] == 2 && nums[i + 1] == 3) nums[i + 1] = 0; } return nums; }