Laminar Security interview question

Basic coding question and global state question