1802. Maximum Value at a Given Index in a Bounded Array - Solutions and Explanation | Vultr Docs