34. Find First and Last Position of Element in Sorted Array (Medium)