My Java Solution
\nclass Solution {\n    public int minImpossibleOR(int[] nums) {\n        Arrays.sort(nums);\n\t\tint minXOR = 0;\n\t\tfor (int i = 0; i < nums.length; i++) {\n
```\nclass Solution {\n    public int minImpossibleOR(int[] nums) {\n        Arrays.sort(nums);\n\t\tint minXOR = 0;\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tif (nums[i] > minXOR + 1) {\n\t\t\t\treturn minXOR + 1;\n\t\t\t}\n\t\t\tminXOR |= nums[i];\n\t\t}\n\t\treturn minXOR + 1;\n    }\n}\n```
['Java']