Euromonitor interview question

Basic Shorting Algorithm