Pergunta de entrevista da empresa X

First round is one coding question plus one probability. Second phone interview is a design question.