Modify array by making all array elements equal to 0 by subtracting K^i from an array element in every i-th step
Given an array arr[] of size N, the task is to check if it is possible to convert all array elements to 0s, by subtracting Ki from an array element, in the ith step. If it is possible to do so, then print "Yes". Otherwise, print "No". Examples: Input: N = 5, K = 2, arr[] = {8, 0, 3, 4, 80}Output: Ye