Implement a persistent stack data structure - PStack, that supports the following operations with each operation executing in O(1) time:
PStack
PStack()