Regarding this question

can I get a code for this problem

hello @sraj39273

check this