Wise Interview Question

Kind of basic CS theory.