Amazon Interview Question

Q: Rotton Oranges on leetcode