AccelByte interview question

Implement the program to read from ordered logs files.