You are given four integers. Your task is to return the second largest value among them.
Input: a = 3, b = 9, c = 7, d = 5
Output: 7
Explanation: The largest value is 9, and the second largest value is 7.
Input: a = 10, b = 10, c = 4, d = 2
Output: 10
Explanation: With duplicate largest values, the second largest is also 10.
Input: a = 1, b = 2, c = 3, d = 4
Output: 3
Explanation: After 4, the next largest value is 3.
Sign in to write, run, and submit your solution against the full test suite.