Given A & B find count of all num which falls between A & B(both inclusive), where num = x * (x+1) A = 6 B = 20 Answer = 3
2 * 3 = 6 3 * 4 = 12 4 * 5 = 20
A>=6,12, 20<=B
Can someone help with the solution approach?