HubSpot Interview Question

Solve a Leetcode problem from the first 10 easy problems.