Can you tell why segmentation fault is coming?

hello @vageesha

check now->