Knock interview question

Problems related to my coursework in Data Structures and Systems Programming.