Buy to open put option example using arraylist