JPMorganChase interview question

OA: leetcode easy/medium Code For Good Hackathon