In September 1940, Japan signed a triple pact with Nazi Germany and Fascist Italy. With this agreement, all three countries have committed themselves to helping each other, if any of them were attacked, by countries that were not yet involved in the war. In this way, Japan stepped aside the axis forces and, of course, to the side of Nazi Germany.
The answer is: Japan.