I created this code sample in December, 2018 for an interview. The task is to parse a log file containing the following format:
<#>, C<#>, P<#>
Where the first number is a "timestamp," the second is a Client/Customer ID #, and the third is a Page #. The entry represents a customer visiting a specific page at a specific time.
It's assumed that the log file contains timestamps in ascending order.