Domanda di colloquio di Apple

A leet code question on Bucket sort on IPs.