Write an algorithm for attached document.

Place an Order