add solution of inter merge