Snake ladders graph

output is wrong ???

what is wrong in my code ??

hello @hg11110000

pls check ur updated code here->