• + 0 comments

    The problem statement says that no consecutive two numbers in the arrays will ever be 0. So this case is ruled out.