FarmLink (Canada) interview question

Writing pseudo code for some basic database functions, and some time complexity questions.