Function to find the maximum sum of array elements chosen by Player A according to the given criteria
int recursiveChoosing ( int arr [ ] , int start , int M , map < pair < int , int > , int > dp , int N ) {