Online: Most people find it convenient to book train tickets online. You can use websites or apps of train service providers or third-party booking platforms.
At the Station: You can visit the train station and book your tickets at the ticket counter. https://medium.com/@nishantindivedic/how-can-i-book-a-round-trip-ticket-771a61260768