Company: Myntra
Difficulty: medium
Max OR Array Problem Description Jonathan is utilizing his summer vacations learning about arrays. He is solving a problem and gets stuck at some point so he asks you for help. You are given an array A of size N containing non-negative integers. You can remove a subarray from array A such that the bitwise OR of all the elements in the remaining array is the maximum possible. Your task is to find and return an integer value the size of the maximum length subarray that can be removed. Input Specification input1: An integer array A input2: An integer N denoting the size of the array Output Specification Return an integer value the size of the maximum length subarray that can be removed. Examples Example 1: Input: input1 = (1,4,24,2), input2 = 4 Output: 0 Explanation: The bitwise OR of the whole array is 31 which is the maximum value possible and it cannot be achieved by removing any subarray. Hence, 0 is returned as the output. Example 2: Input: input1 = (2,1,1,5,4,8,1), input2 = 8 Output