The code works and does exactly what I would expect it to, but it\'s a bit difficult for me to dictate the complexity of it.
public static int smallestSubSum(