Enter the Algorithm (Explicit)

Working (Explicit)