ADTRAN Interview Question

Design an algorithm that selects the closest n stars to one star.