Revolent Interview Question

Very generalized programming Q for a technical interview