When world war 2 began, which country controlled korea?

When world war 2 began, which country controlled korea?