Pergunta de entrevista da empresa Thumbtack

Coding question, can't disclose