Hold on!

Warning: this link might be unsafe, please double check the link before you proceed.

https://helloacm.com/teaching-kids-programming-line-sweeping-algorithm-to-compute-the-most-frequent-number-in-intervals/