Pergunta de entrevista da empresa WEX

OA was Leetcode level easy problem.