Domanda di colloquio di TokBox

1 general algorithm question, 1 more practical front end question- both whiteboarded