Refactoring using Functional Programming

Refactoring using Functional Programming
Function Programming techniques to refactor your code!