Ashley Furniture Interview Question

two leetcode easy questions were asked