Cognizant Interview Question

Some ques from JavaScript, OOPS concept and some theory DSA.