Find an integer that is common in the maximum number of given arithmetic progressions
Given two integer arrays A[] and D[], where Ai and Di represent the first element and common difference of an arithmetic progression respectively, the task is to find an element that is common in the maximum number of given arithmetic progressions.Examples: Input: A[] = {3, 1, 2, 5}, D[] = {2, 3, 1,