BFS shortestpath

it is howing tle in test case number 1

@gauravmadan583 Please save the code in coding blocks IDE and share its link.