Given a sequence of commands to move robots in a parade, determine the final sequence of robots from left to right. The commands are of two types: 'A X Y' to move a robot to position (X, Y) and '5-8 X Y' to move a robot to bend over position (X, Y). The initial positions of the robots are unknown, but the final positions are given as a list of 2D points. The goal is to reconstruct the original sequence of robots.
Flipkart Grid 8.0 • Pending