First Bad Version - Read Statement

You're a product manager with nn versions [1,2,...,n][1, 2, ..., n]. One version is bad, and all versions after it are also bad. You have an API isBadVersion(version) that returns whether a version is bad.

Find the first bad version while minimizing API calls. It's the classic lower bound problem in disguise.