HOLOPLOT interview question

An easy task on code design