Given an array of ints, return true if the number of 1's is greater than the number of 8's. moreOneEight([1, 8, 1]) true moreOneEight([1, 8, 1, 8]) false moreOneEight([1, 1]) trueExample input and output InputOutputint[] nums = {8, 1, 1, 8, 1, 8, 8, 8, 8, 8}; System.out.println(moreOneEight(nums));false.