Ipsos Interview Question

Another algorithm exercise + basic questions