2nd-mid-solution

solution of the 2nd mid