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