Man Group interview question

Deal with logs with different format