add answer of #16 problem