After getting totally shafted at your Google interview, you decided to enroll in CS 124, Data Structures and Algorithms. But surprise, surprise, you are woefully unprepared! Now your only hope is to mooch pset answers off of your more knowledgeable classmates.
Luckily, you have N friends in the class. But don’t get your hopes up yet. Only M of your friends have the mathematical maturity to finish the pset, and only K of your friends can program in one of C, C++, Java, OCaml, or Python. You, of course, can do neither.