X interview question

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