Pergunta de entrevista da empresa NTT DATA

Questions on MySQL and a simple question on Algorithms.