Sentence: Ann asked Mary what time the library closes, but she had forgotten.
 Reason: The 'she' refers to mary because Ann is the who asked what time it closes. 
 Question: Is the above reasoning correct or wrong? 