Bloomberg Interview Question

Design LeaderBoard, Longest Subarray, tree node that are furthest to the right