Function to find the minimize replacements to make every element in the array A [ ] strictly greater than every element in B [ ] or vice - versa
static void MinTime ( int [ ] a , int [ ] b , int n , int m ) {