Calix Interview Question

coding: to find the peak element