Not able to solve the question

I can’t solve the question, please help me out. It would be helpfull if u provide me with a code .


@ayushkotwar2002_78a27ac2b05189a5 refer this