Robinhood interview question

look for offset question on leetcode discuss