Pregunta de entrevista de WEX

OA was Leetcode level easy problem.