Distribusion Interview Question

Code refactoring of a method.