540. Single Element in a Sorted Array (Medium)