Print only the log lines whose level is ERROR.
Each log line looks like `<timestamp> <LEVEL> <message>`.
Print only the lines whose level token (the second whitespace-separated word) is exactly `ERROR`.
Test input:
2024-01-01 INFO start
2024-01-01 ERROR disk full
2024-01-01 WARN slow
2024-01-01 ERROR oom
Expected output:
2024-01-01 ERROR disk full
2024-01-01 ERROR oom
Sign in to save your code and track progress across devices.