1 count problem


plz check my code, test cases are not passing,

@Bhavya_Goel
You are printing only the length of subarray with maximum 1s. You also have to print modified array. Please check the sample input and output