Pregunta de entrevista de Thumbtack

Coding question, can't disclose