Adobe Interview Question

2 lc medium and ML questions