What should be the input and output format

I code using java. I have taken a a string as input and converted it into list of integers that would make up the BST.
For the output, I have simply print the data of DoublyLL.

The code logic is absolutely fine but still I am getting run error. I am assuming this to be be the input or output format problem. Kindly help with the same.