title: I wrote A Code In Python To find Max And Minimum Of 4 elements out of array of 5 elements
body: <p>I Was Making A code For Making Sum Of list OF Max And Min. 4 Elements from a list of 5 Elemts . My COde Was Working Fine Until it is Introduced TO large No.'s .</p>
  
  <pre><code>def miniMaxSum(arr):
      sum1=0
      small=arr[0]+arr[1]+arr[2]+arr[3]+arr[4]
      lar=0
      for i in range(0,4):
          sum1=0
          for j in range(0,4):
              if i+j&lt;=4:
                  sum1+=arr[i+j]
              else:
                  sum1+=arr[(i+j)-5]
          if sum1&gt;=lar:
              lar=sum1
          if sum1&lt;=small:
              small=sum1
      print("Minimum:",small,"Maximum:",lar)
  if __name__ == '__main__':
      arr = list(map(int, input().rstrip().split()))
      miniMaxSum(arr)
  </code></pre>
  
  <p>I Am Getting Correct Answers if I am Using Small no. In Array .However it can't show Minimum Sum when Introduced to large No.
  example:
      396285104 573261094 759641832 819230764 364801279
      maximum is Working fine But Minimum is coming 2153578241 instead of 2093989309</p>