LeetCode

Find First and Last Position of Element in Sorted Array

Click here for an explanation.