Docusign interview question

2 Leetcode Medium and 1 easy.