Capital One Interview Question

Leet code questions on stock purchases