Is it required that my bank account has to be in my country of residence?

You can withdraw your funds to any personal bank account under your name in any country, it does not have to be your country of residence.