Mphasis Interview Question

combination program ncr problem via program?