Synack interview question

Mostly leetcode stuff. The problems were not hard.