結果 : solve the problems given in example