Restricted sum problem solved with recursion.
Also a smart solution is included, using the eval function which seems like cheating to somewhat.