Steps to run the program

  1. Clone this repo
  2. Run following commands in the root folder
$ chmod +x solution
$ ./solution <absolute-path-of-the-directory-containing-files>