Truveta interview question

Write a crud function. Basic recursion problem.