Pergunta de entrevista da empresa JPMorganChase

Easy leetcode questions. Focus on algorithm