Find Element In Sorted Array With Duplicates Leetcode