Pergunta de entrevista da empresa Hired

Design question with protocols.