you will design your own algorithm using both pseudocode