JPMorganChase Interview Question

Easy leetcode questions. Focus on algorithm