Amazon interview question

peak element in an array from gfg and other coding qs, 2nd highest salary 3 ways in sql, differentiate sql vs no sql