Pregunta de entrevista de Philips

They asked me to write a sql query using having clause .