How do I find a maximum number of consecutive non-zero values in the array?

Thank you so much my life saver

2 Likes