Array: to find the max diff b/w two elements