Help me in solving CTRE problem

Can anyone explain me how the input is being taken in as I am new to tree?