Pregunta de entrevista de Netcracker Technology

DSA and java question, service oriented question