The correct answer is Italy
When the allies managed to get on Italian ground, the Italians surrendered. From that moment on, Italy became an occupied country by the Nazis and wasn't a member of the Axis countries anymore as Germans tried to keep hold of Italy even with its own army. Germans surrendered second, while Japan surrendered last.