Solve parsing, counting, ranges, and window problems | Meta Interview Question