leetcodeLeetcode 34. Find First and Last Position of Element in Sorted ArrayFind First and Last Position of Element…