<reponame>smartx-jshan/Coding_Practice
class Solution:
    def arrayPairSum(self, nums: List[int]) -> int:
        nums.sort()
        
        sum = 0
        
        
        for i in range (len(nums)):
            if i % 2 == 0:
                sum += nums[i]
            
        return sum
                
        

class Solution:
    def arrayPairSum(self, nums: List[int]) -> int:
        nums.sort()
        
        sum = 0
        
        
        for i in range (len(nums)):
            if i % 2 == 0:
                sum += nums[i]
            
        return sum