Given an integer N and an array A of N integers. Find a non-empty subarray whose bitwise AND of all elements is minimum possible.
A subarray can be formed after deleting some or none elements from front and back.
Print the minimum bitwise & of subarray.
doing AND always reduces the value or value remains same
using this observation we can take the bitwise AND of all the numbers present and that will the minimum possible value.
Please comment below if you have any questions, alternate solutions, or suggestions.