see in this we have to find the shortest even length path between source and destination,
But this above approach seems wrong, the test case which author takes when i take source as 1 and destination 2 then the code gives output 13 but it should be -1 .