Paktolus interview question

Basic development question