The woman, along with a friend, was travelling in the Jamalpur Express and the accused allegedly molested her when the train was at Pakur railway station in Jharkhand, the GRP said.
The woman immediately raised an alarm, following which other passengers and the Railway Protection Force (RPF) personnel, who were on board, caught hold of the accused.
The accused was produced before a court here, which remanded him to a four-day judicial custody.
Election Results for Lok Sabha Election 2019 will be out on May 23. Get the latest election news and live updates on ndtv.com/elections. Catch all the action on NDTV Live. Like us on Facebook or follow us on Twitter and Instagram for news updates from each of the 543 parliamentary seats for the election 2019