Hudson River Trading interview question

Technical: Verbal leetcode hard and custom coding question.