Fortinet interview question

Basically problems from Leetcode, and some ML basics.