Compute max profit from one stock trade | Flipster Interview Question