Refactored the implementation
Merge branch 'master' of https://github.com/ifthikhan/Challenges