Facebook interview question: stock profit | Hacker News Reader