Reverse using stack

Friend function to call class members