Regeneron interview question

Write code for generating LOCF records