- Lan is the best student in your school, isn’t she?
=> they asked If Lan was the best student in my school.
Yes, you converted the sentence correctly into indirect speech. Please note that ‘if’ should not be capitalized though.
many thanks for your help