add solution for next right ii problem