Hudson River Trading interview question

Easy DSA problems (leetcode based)