Fortinet interview question

All were leetcode medium and hard