What is an algorithm?
A set of steps to solve a problem
Reason — A finite sequence of steps required to get the desired output is called an algorithm.