Pergunta de entrevista da empresa Align Technology

some logic questions and avarage code challenge