Stocks finish wild month with Amazon rising, Apple sinking and Seoul’s best day ever resulting in a 22% loss