Answer :
It was "Poland" that was not a member of NATO during the Cold War, since this was part of the Soviet sphere of influence under the Warsaw Pact, and Hungary remained under Soviet control until 1955, when it gained its independence.