title: Implementation of subset sum problem is giving wrong answer
body: <p>I want to implement a solution for the subset sum problem. But in the below implementation all test cases are returning 'No'. Can someone point out the problem in the code?</p>
  
  <pre class="lang-py prettyprint-override"><code>def isSubls(l, n, s):
  
      if s == 0:
          return 'Yes'
      if n == 0 and s != 0:
          return False
      if l[n - 1] &gt; s:
          return isSubls(l, n - 1, s)
  
      return isSubls(l, n-1, s) or isSubls(l, n-1, s-l[n-1])
  
  
  def run():
  
      for _ in range(int(input())):
  
          n, m = map(int, input().split())
          l = []
  
          for i in range(n):
              l.append(int(input()))
  
          print(isSubls(l, n, m))
  
  
  run()
  </code></pre>