add solution for stock II problem