Please rewrite the blue written solution and make a new code
Please rewrite the blue written solution and make a new code that differs to above, so it would look different to the original solution.
Solution
Let x such that
M(x)
for x=1 to n
M(x)
stop
while(k)
M(x)=M(x)+S
while(k=k+k+1)
M(x)stop
print M(x)
for x where M(x)
stop
