Had a coderpad interview sometimes this week. One easy and one medium. Q1. Exactly the same as https://leetcode.com/problems/minimum-size-subarray-sum/
Q2. Find the second smallest element in an array. Important to take note of the word element
For example, [4,8, 9, 2, 1, 1] should return 1, not 2. Also, if array.length is less than 2, just immediately return zero.