Outstanding bytes = (LastByteSent - LastByteAcked) = 10240 - 8192 = 2048 Bytes = 2KB.
Current window size = Min( Congestion Window Size, Advertised Window) = 4KB.
Now in this 4 KB window we need to have those outstanding bytes ,i.e, 2KB. So for new data remaining 2KB is used.
So answer should be 4KB.