Oracle Interview Question

Buy and sell stock overtime