String WIndow( Wrong Answer)

I’m using Hash Table to maintain a small window of elements to check if I have any such window or not and once I find one such window I’m minimizing it. But don’t know why it’s not priniting complete answer string.