Closed

simple algorithm.