Ares Materials interview question

Basic algorithm questions