Procore Technologies interview question

Leetcode easy for both python sql