Smallest element repeated exactly âkâ times (not limited to small range)
Given an array of size n, the goal is to find out the smallest number that is repeated exactly âkâ times where k > 0? And Examples: Input : a[] = {2, 1, 3, 1, 2, 2} k = 3 Output : 2 Input : a[] = {3, 4, 3, 2, 1, 5, 5} k = 2 Output : 3 Explanation: As 3 is smaller than 5. So 3 should be printed.Re