Pregunta de entrevista de TechSophy

3 Puzzles, coding question and sql question.