Updated my solution
Merge pull request #296 from arun1595/patch-1

Updated my solution