Microsoft interview question

1 Question Codility Assessment online