Pergunta de entrevista da empresa Bloomberg

Coding: Given an array of numbers that represent selling/buying prices, return the maximum possible loss.