Recro interview question

Secod Round Hackerearth JS MCQ 2 DSA Problem