Method of characteristics for the transport equation solution