Pergunta de entrevista da empresa ShipBob

Leetcode easy problem with follow-ups increasing the difficulty to medium and hard