Credex Technology interview question

Basic JS questions and dsa based