Substack Interview Question

General coding question around an API request