The CB scholarship problem,

i cant think of a way to pass test case 3 and 5 why???