1Fix the extraction taking the last elementeasy · 8 minRemoving from the end ignores which value is smallest.Acceptance criteria1.#out should show 1-3-5.TaskHints 0/1Solution