Solution (source code)

= Solution

Two ordered points $x_1<x_2$ are shattered by intervals: an interval can contain neither, either one alone, or both. Three ordered points cannot be shattered, because an interval containing the first and third must also contain the middle one. Hence
$$
\boxed{VC(H_1)=2.}
$$