Adobe interview question

2 LC medium and 2 system design problems