Pregunta de entrevista de Cognizant

OOPS, Programming question and question based on model assigned .