QBurst interview question

Basic programming, logical questions