Pregunta de entrevista de Jane Street

Use recursive functions and data to implement an API