Decide whether to invest in R&D | Capital One Interview Question