Asana interview question

codesignal 4 problems. LC 2 easy, 2 medium