Meta Interview Question

One lc easy and one medium