https://medium.com/nerd-for-tech/leetcode-find-first-and-last-position-of-element-in-sorted-array-946c8eff533d