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