Amplitude Interview Question

sorting a really big file with single node)