<p>An underground railway system is keeping track of customer travel times between different stations. They are using this data to calculate the average time it takes to travel from one station to another.</p>
<p>Implement the <code>UndergroundSystem</code> class:</p>
<ul>
<li><code>void checkIn(int id, string stationName, int t)</code>
<ul>
<li>A customer with a card ID equal to <code>id</code>, checks in at the station <code>stationName</code> at time <code>t</code>.</li>
<li>A customer can only be checked into one place at a time.</li>
</ul>
</li>
<li><code>void checkOut(int id, string stationName, int t)</code>
<ul>
<li>A customer with a card ID equal to <code>id</code>, checks out from the station <code>stationName</code> at time <code>t</code>.</li>
<li>Returns the average time it takes to travel from <code>startStation</code> to <code>endStation</code>.</li>
<li>The average time is computed from all the previous traveling times from <code>startStation</code> to <code>endStation</code> that happened <strong>directly</strong>, meaning a check in at <code>startStation</code> followed by a check out from <code>endStation</code>.</li>
<li>The time it takes to travel from <code>startStation</code> to <code>endStation</code><strong>may be different</strong> from the time it takes to travel from <code>endStation</code> to <code>startStation</code>.</li>
<li>There will be at least one customer that has traveled from <code>startStation</code> to <code>endStation</code> before <code>getAverageTime</code> is called.</li>
</ul>
</li>
</ul>
<p>You may assume all calls to the <code>checkIn</code> and <code>checkOut</code> methods are consistent. If a customer checks in at time <code>t<sub>1</sub></code> then checks out at time <code>t<sub>2</sub></code>, then <code>t<sub>1</sub>< t<sub>2</sub></code>. All events happen in chronological order.</p>
<li>All strings consist of uppercase and lowercase English letters and digits.</li>
<li>There will be at most <code>2 * 10<sup>4</sup></code> calls <strong>in total</strong> to <code>checkIn</code>, <code>checkOut</code>, and <code>getAverageTime</code>.</li>
<li>Answers within <code>10<sup>-5</sup></code> of the actual value will be accepted.</li>