How do I solve this question? The original question asked for the "smallest number of students". I solved that by taking 75 as the maximum number of students who got all 5 questions correct, then from the remaining 25 students I considered the 5 students who got 1st question wrong, 3 students who got 3rd question wrong, 5 students who got 4th question wrong, 4 students who got 5th question wrong as distinct. Therefore, 17 students got exactly 3 questions correct. Thus, 8 students got exactly 4 questions correct.
I was wondering if a similar logic could be applied to find the "largest number of students who got exactly 4 questions correct".

We can see that Question 2 has the least amount of students that got it correct. Then we can have $95$ students that get all of Q1, 3, 4, 5 but not Q2, but that is a contradiction as Q2 had $75$ students that got it correct, which means $100-75=25$ got it wrong. Then, if $25$ students get all of Q1, 3, 4, 5 but no Q2, it is possible.
If we consider the cases where we need to find the maximum possible of students that only get
Q1, 2, 3, 4; 1, 2, 3, 5; 1, 2, 4, 5; or 2, 3, 4, 5; we can find that the maximum possible is $100-95=5$ students who get only those questions and not the excluded question.
Therefore, $25$ is the final answer for Q1, 3, 4, 5. We can also have an extra $100-95=5$ for Q2, 3, 4, 5, an extra $100-95=5$ for 1, 2, 3, 5, an extra $100-96=4$ for 1, 2, 3, 4, and also an extra $100-97=3$ for 1, 2, 4, 5. So the final answer for the entire question is $25+5+5+4+3=\boldsymbol{42}$ students.
We can see that if there are at least $43$ students that get exactly four questions correct, that is a contradiction, because then the numbers for amount of people getting a question correct will be wrong, because the amount of people getting a certain question right plus the amount of people getting the same question wrong will exceed $100$ in one or more question.