Epic interview question

Leet code kind of problems