class Solution { public int findMaxConsecutiveOnes(int[] nums) { int max = 0; int consecutive_ones = 0; for(int i=0;i