When a steep roof meets a vertical wall, which of the following is the best method of flashing?

When a steep roof meets a vertical wall, which of the following is the best method of flashing?