How to Access Wrapper Class Variable in Visualforce Page?

Controller:

public class SampleController
{
    //Wrapper class variable
    public Wrapper obj {get;set;}
    
    //Constructor
    public SampleController(){
        obj = new Wrapper();
        obj.name = 'Biswajeet';
    }
    
    //Wrapper class
    public class Wrapper
    {
        public String name {get;set;}
    }
}

Visualforce Page:

<apex:page controller="SampleController">
    <apex:outputText value="{!obj.name}"></apex:outputText>
</apex:page>