Amazon Interview Question

solving simil-leetcodes problems at home