Pregunta de entrevista de Revolent

Very generalized programming Q for a technical interview