This video could not play here.
It may be members-only, region-restricted, or unavailable in embedded players.
Maximum difference between two elements in array
Find maximum difference between two elements in array. The case where larger element comes after smaller element is handled here.