PropReturns interview question

Dsa and javascript and React