Pergunta de entrevista da empresa Align Technology

Handshake problem from leetcode .