The correct answer is that both nations were imperialist, as the columns shows each country's territorial acquisitions.
In fact, both Japan and the United Kingdom had imperialist ambitions, which resulted in the invasion of other territories and the formation of colonies. That was the case of Manchuria, Korea and Ryukyu, among others, with respect to Japan; and Hong Kong, Bermuda, Canada, Australia, among others, regarding the United Kingdom.
Today, many of these colonies have become independent or are in the process of becoming independent, since these countries have held back their expansionist ambitions.