Find the Longest Valid Obstacle Course at Each Position | dStruct