Versions are numbered from 1 through n. Once a version is bad, every later version is also bad.
Given n and firstBad, return the first bad version. The firstBad parameter replaces LeetCode's external isBadVersion API in this exercise.
Inputn = 5, firstBad = 4
Output4
Inputn = 1, firstBad = 1
Output1
1 ≤ firstBad ≤ n ≤ 2³¹ - 1