Pregunta de entrevista de Truecaller

It was the sql query , a easy one .