Daily challenge for 2025-04-13
103. Find Peak Element
Write a function solve that finds a peak element in an array (an element greater than its neighbors) and returns its index.
Example:Input: [1,2,3,1]Output: 2
Run this challenge interactively in Python or JavaScript when the app loads.