Function to rearrange the second array such that the sum of its product of same indexed elements from both the arrays is minimized
ll findMinValue ( vector < ll > & a , vector < ll > & b ) { int n = a . size ( ) ;