Raven (Israel) Interview Question

How did you build the code?