Malwarebytes Interview Question

Coding. From easy to hard. Similar to those in leetcode