Hi,

Anybody can help me understand what I do not understand?

One of the test cases is: [3,2,6,5,0,3] and the expected output is 4.

Now, let's assume that 'b' means buy, 's' means sell, and 'n' means do nothing. So if we have the following scenario:

bbssnn

My initial profit is 0.

```
action profit why
b -3 -3
b -5 -2
s 1 +6
s 6 +5
n 6 (just pass)
n 6 (just pass)
```

So I end up with a better profit 6 rather than what is expected 4.

Do I get it wrong? Why?

Thanks