Pregunta de entrevista de Bungee

Two sum leetcode question and basic Sql queries.