DataArt interview question

The algorithmic test had unexpected questions