X interview question

home assignment