Relay Log Balanced Subsequence Tally — Coding Problem — CareerVerse