This problem is completely solved by using the hint.

The interesting part of this is proving the hint is true.

If define two sets .

You be able to give reasons why both sets are nonempty.

Now look for least upper bound of and greatest lower bound of and with those as endpoints you have a maximal open interval containing and is a subset of .