STERIS Interview Question

Gave me a problem and I needed to implement a solution