Max OR Value

You are given an integer array nums and an integer k. You may perform exactly one operation: choose one element and multiply it by 2^k (left-shift by k bits). Return the maximum possible bitwise OR of all elements after applying the operation.

Examples
Input: [[12,9],1]
Output: 30
Hints

Max OR Value

You are given an integer array nums and an integer k. You may perform exactly one operation: choose one element and multiply it by 2^k (left-shift by k bits). Return the maximum possible bitwise OR of all elements after applying the operation.