They are both acceptable BUOBs.
It is not important for the body (as in the distance between open and close) of the first bar to necessarily get engulfed by the body of an outside bar.
What we refer to when we say an "outside bar" is a bar whose high and low (i.e the complete range) both exceed the high and low of the previous bar.
Put together differently, an OB is a bar that has a high exceeding the high of the previous bar and a low exceeding the previous bar's low. As long as you have that you're looking at an outside bar.
hope that clears things up.
g.
Attached Image
I believe . . .