Laufengd_HW_01

You could use an SSet or Priority queue here.