I need to get print like this. How to get it in indesign?
Yes, this can be done in InDesign, via a script. You basically just need a script that duplicates a text frame onto each new page and moves it ever so slightly to the left on each page. On the first page, the left edge of the text frame touches the right edge of the page and on the last page the right edge of the text frame touches the edge of the page. After placing each of the text frames you can place a rectangle with a paper fill on top of it, so only a thin slice of the text frame is visible at the very edge of the page.
Beforehand of course you need to decide on the text size, then measure and count how many pages you need to create such a height and then you know how many steps the text frame needs to move over.
I have done such a project in the past via scripting, see here.