Please run the PHP solution to the problem by cloning the repository on your machine and then running the following commands on your Terminal (where {$SOLUTION_ROOT} is the path to the folder inside which you stored the solution):
- cd {$SOLUTION_ROOT}
- php solution.php
There is a sample output.txt file in the repository. If you want, you can change the output destination file name in the code by changing the value of $outputFile.