Find First And Last Occurrence Of X Leetcode