Cognizant interview question

Coding Question OOPS SQL Logical questions