Create RailwayReservation.java

class which implements all the functions provided by the reservation system.