Compute days until plants stop dying | Walmart Labs Interview Question