according to the test case given in the question, the max points should be 6 but it should be 7 instead.
first piyush takes 4 (it gets added),nimit takes 1(does not get added), then again piyush takes 3(added) and at then finally, nimit takes 2 .so the max should be 7.
is my explanation correct, or maybe I don’t understand the question right? if not, then show how the max points are 6.