How would a professional flash this?
The term to research is kick out flashing. It's used when a roof line butts up against a vertical surface near the edge. It sends the water away from the vertical edge into the gutter. Example: