Happy Scribe interview question

Interview was some leetcode problems, 2 medium/hards.