Queries to check if array elements from indices [L, R] forms an Arithmetic Progression or not
Given an array arr[] consisting of N integers and an array Q[][2] consisting of M queries of the form {L, R}, the task for each query is to check if array elements over the range [L, R] forms an Arithmetic Progression or not. If found to be true, print "Yes". Otherwise, print "No". Examples: Input: