A  stack_getmiddle_constant_time.cpp