Yordas Group interview question

How did you solve this project?