ON24, Inc. interview question

Typical Leetcode easy and medium questions