Count the number of subsequences of length k having equal LCM and HCF
Given an array Arr and an integer K. The task is to find the number of subsequences of size K such that the LCM and HCF of the sequence is same.Examples: Input: Arr = {1, 2, 2, 3, 3}, K = 2 Output: 2Subsequences are - {2, 2} and {3, 3}Input: Arr = {1, 1, 1, 1, 2, 2}, K = 3 Output: 4 Approach: LCM an