Problem

Return second largest in length>=2 distinct max case.

Examples

  • secondMax([9, 4, 7]) -> 7
Compile and test (Ctrl+Enter)