Saksoft interview question

Asked in different tech stack in 2nd technical round