First Bad Version | Leetcode 278 | Approach + Code with explanation.

Published --