Cognizant interview question

What is oops concept write algorithm for basic programs