accepted

accepted gray code, maxprofit,maxprofit 2