1) Calculate the maximum length of consecutive 1s in an array when removing one element (deletion is mandatory). [1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1] In this case, the result is 6. 2) Given two arrays of the same size, return an array of the same size where each element represents the count of identical elements between the two arrays. Identical elements within the same array are not counted. Example 1: array1 array2 result 0 2 0 1 4 0 2 3 1 3 6 2 4 5 3 5 7 4 Example 2: array1 array2 result 0 1 0 0 1 0 0 1 0