You are given two numbers N and M. Your task is to print an array A such that:
The array can be of a large size. Therefore, if the array size is strictly more than K, then you must skip the task and print −1.
Input format
Output format
The format of the output is as follows:
Constraints
1≤N, M≤10121≤L, R≤1012, L<=R0≤K≤105
15%7=1
so let's check for the numbers in [L:R]
(15%1=0) , (15%2=1) ,(15%3=0),(15%4=3),(15%5=0),(15%6=3),(15%8=7),(15%9=6),(15%10=5)
so the only number that works is 2