Solved the fifth question
add findLastM solution
merged from remote