Part5
Part5 solution