FNZ interview question

Basic problem-solving and code interpretation.