Pregunta de entrevista de Amdocs

pattern code ,logical question ,long chain