Function to calculate the score of same - indexed subarrays selected from the arrays a [ ] and b [ ]
int currSubArrayScore ( int * a , int * b , int l , int r ) { int straightScore = 0 ; int reverseScore = 0 ;