Pregunta de entrevista de Amdocs

Related to Joins in SQL and one coding problem on String.