Gap Inc. Interview Question

Asked 2 leetcode questions and their time and space complexities.