A court heard how the girl was reportedly raped in the toilet of the busy train.