I need the code for this question

i need the code for this question