Meta interview question

Implement readLine given read4k