Adobe Interview Question

Leetcode coding question difficulty level medium/hard