Which country signed a non-aggression pact with an Axis power at the start of the World War II but later sided with the Allies?

A) Japan
B) Finland
C) Soviet Union
D) Italy