Yara interview question

Basic stuff, not very difficult