Pregunta de entrevista de Fleet Complete

Simple conditional business logic coding exercise.