What is an algorithm:

It s a sequence of instructions that run with a logic order to solve a problemin which it transforms input data to output data