I\'m trying to implement in Java a function that gets as input an array which it consists just from ones and zeros like v= [0 0 1 1] ; and seco