Nasdaq Interview Question

Identify certain patterns from large file using linux