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 , HashMap < Point , Integer > dp ) {