finally solved problem 26 on combinations