Displaying element on the top of the stack
static void stack_peek ( Stack < int > stack ) { int element = ( int ) stack . Peek ( ) ; Console . WriteLine ( " Element ▁ on ▁ stack ▁ top ▁ : ▁ " + element ) ; }