Tatvasoft Interview Question

oops questions and patterns questions.