1150. Check If a Number Is Majority Element in a Sorted Array - Solutions and Explanation | Vultr Docs