Invideo interview question

How would you sort data continuously incoming from certain source Design Snake n Ladder