Answer two coding questions (SQL and DP) | Amazon Interview Question