( chef and digit jumps solved using bfs of codechef june challenge