Platform: Codepad.io
Question 1:
https://leetcode.com/problems/first-unique-character-in-a-string/
Question 2:
Find the smallest subarray length with target more than or equal to the sum of the subarray. The numbers are non sorted. Return -1 if not possible.
eg: {1,2,3,4}
sum 6 --> 2
sum 12 --> -1