Please share code

can you please share the code for this problem