Problem solving/Algorithm(6)

1