In this question how come the output is 6?
“Piyush will pick the coin 4. Then Nimit can pick either 1 or 3. In both the cases Piyush picks coin 2 and wins with a total of 6.” This is the explanation given for the sample test case but if Nimit picks 1 then Piyush can have maximum value of 7 right? But it is given in both cases it will be 6. I don’t understand.