Sum of multiples of A and B less than N
Given three integers n, a, b, the task is to find the sum of all numbers in the range [1, n] that are multiples of either a or b.Examples: Input: n = 10, a = 2, b = 3Output: 42Explanation: The numbers divisible by 2 or 3 are 2, 3, 4, 6, 8, 9, 10.Input: n = 100, a = 22, b = 23Output: 450Explanation: