Kth number from the set of multiples of numbers A, B and C
Given four integers A, B, C and K. Assume that all the multiples of A, B and C are stored in a set in sorted order with no duplicates, now the task is to find the Kth element from that set.Examples: Input: A = 1, B = 2, C = 3, K = 4 Output: 4 The required set is {1, 2, 3, 4, 5, ...}Input: A = 2, B =