Exist OR Not why do i get runtime error on case 2?

@khushipriya681 hey khushi I made some modification go through this link
link.