Finished MthtoLast solution