Amazon Interview Question

they asked 2 coding questions. you could possibly find it on leetcode