add solution for Q2.3
add solution for Q2.4