Maximum Weighted Difference

Company: Microsoft_21aug

Difficulty: easy