private void validateInputSet(Set<Integer> inputSet) {
    if (inputSet == null) {
      throw new IllegalArgumentException("You can't pass a null set as input.");
    }
  }
Combination of recursive and iterative approach to resolve this problem.
src/main/java/com/github/pedrovgs/problem43/CombinationOfIntegers.java