Javascript Function To Find Maximum Difference Among All Possible Pairs

Javascript Function To Find Maximum Difference Among All Possible Pairs