Motive interview question

Basically easy and medium LC, NDA.