citizenship function

here is my function to check the threat level based on citizenship