Experian interview question

Implement a Stack. Compare two software versions and return 0,-1,1 accordingly.