DSA Key Problems

Minimum Array End

Given positive integers n and x, return the smallest possible final value of a strictly increasing length-n array whose bitwise AND equals x.