Generate a permutation of first N natural numbers having count of unique adjacent differences equal to K

Posted Date: