Wise interview question

Questions regarding how to improved code quality + unit testing