Smarty interview question

It was a code review in GO.