Answer two coding questions (SQL and DP)
Company: Amazon
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Quick Answer: This multi-part question evaluates SQL query skills (handling distinct values, aggregation and edge-case NULL results) and algorithmic proficiency in dynamic programming on strings, specifically counting distinct palindromic subsequences under modular arithmetic.