How to get last viewed scene name?

you can check this: