https://medium.com/@blessedpashmeen/first-and-last-position-of-element-in-sorted-array-leetcode-problem-solution-binary-search-28e25446a83e