LeetCode
Read N Characters Given Read4
Click
here
for an explanation.