An Interview Problem: The Stock Profit Problem | Hacker News Reader