If Piyush picks coin 4 and if Naman picks coin 1 then Piyush should pick coin 3 toh answer 7 hona chahiyae why it is 6 for both the cases
Optimal game strategy
hi @chiragbaid7, here both player will play optimally(Playing optimally means that both players will have insight into all possible next moves and will play in such a way to maximize their chance of winning without making a mistake.) so nimit will choose the coin that will result in less value left for piyush .
so coming to the giving example it means he has choice to choose between 1 and 3 so out of which he will choose the option which is good for him .
if he had chosen 1 then nimit would have 7 with him that’s why he choose 3 thus piyush getting 6 coins
In case of any doubt feel free to ask 
mark your doubt as resolved If you got the answer