Leaving from North Railway Station (Gara de Nord) in Bucharest take the Brașov train route. The journey takes around 3.5 hours. From there you only have to take a short bus or taxi transfer to Bran Castle.
If you want to visit Bran Castle, you can enjoy a nice one day trip to Dracula’s Castle.