imperative vs declarative/functional programming

Imperative Programming : It specifies a series of instructions that the computer executes in sequence. For example, the following function uses imperative approach for finding the square of each element in the given array....