The Coca-Cola Company Interview Question

Write a simple stdin/stdout text parser in Java.