add stack_implementation solution by python
add mth to last element  solution by python