Construct two N-length arrays with same-indexed elements as co-prime and a difference of N in their sum
Given a positive integer N, the task is to generate two arrays of length N such that the same-indexed elements of both the arrays are co-prime and absolute difference between the sum of elements of the arrays is N. Examples: Input: N = 5Output: {1, 3, 5, 7, 9} {2, 4, 6, 8, 10}Explanation: Pairs of s