Origami Risk Interview Question

Asked to implement polymorphism and fix a bug regarding the ordering of log outputs from a function.