Pregunta de entrevista de Cognizant

Based on MySql , Programming and algorithms