How to load player last scene visited

Hello guys! please i need help to understand how to save and load the last scene that player has played, It can be even playerpref anything will be fine! If that is important the game is set up like that, for example we have 3 zones A, B, C and so on. A connected to B, B is connected with A and C, and C with B. ( There are no “completed level” )
What i need to do and have? I can not find a guide for that specific thing… … Please! Thanks in advice!

Whenever a scene is loaded, save it in player prefs. Then have a method that will load that scene.

private void Awake()
{
    SceneManager.sceneLoaded += OnSceneLoaded;
}

private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
    PlayerPrefs.SetString("_last_scene_", scene.name);
}

public static void LoadLastScene()
{
    SceneManager.LoadScene(PlayerPrefs.GetString("_last_scene_"));
}