Mphasis interview question

combination program ncr problem via program?