Gusto interview question

Write a program to generate a log file from api request