Function to rearrange the second array such that the sum of its product of same indexed elements from both the arrays is minimized
def findMinValue ( a , b ) : NEW_LINE INDENT n = len ( a ) NEW_LINE DEDENT