Girl, 10, prevented her own potential kidnapping by asking for her codeword