Hard mathematics interview practice: Weights Reckoning.
Explore this problem with a Quantercise subscription.