Cognizant Interview Question

Write logic for 2nd highest element in c