Check if Array can be divided into K groups of size C and all elements of group are distinct
Given an array A[] of size N, and two integers K and C, the task is to check if all the elements of the array can be grouped into K groups such that each group has at most C elements and all the elements of a group are distinct. Examples: Input: N=6, A=[1, 2, 1, 2, 3, 4], K = 2, C=3Output: PossibleE