Need help with the question

Can anyone tell me approach for the question

You can follow the tutorial. Its always the best way to understand. :slight_smile: