Check if it is possible form a permutation by dividing elements by K
Given an array, arr[] of size N, and an integer K, the task is to check if it is possible to form a permutation from 1 to N, where you can replace arr[i] by arr[i] / K any number of times. Examples: Input: arr[] = [1, 8, 25, 2], K = 2Output: YesExplanation: Replace 8 with â8 / 2â = 4, then arr = [1,