• + 0 comments
    def getMoneySpent(keyboards, drives, b):
        #
        # Write your code here.
        #
        
        count = 0 
        max_ = -1
        for i in drives: 
            
            for j in keyboards: 
                
                count = i + j
                if count > max_ and count <= b :
                    max_ = count
                
        return max_