Solved Given The Mystery Algorithm Below Algorithm

Solved Given The Mystery Algorithm Below Algorithm