Task 2 (Shortest path) BFS solution created and successfully submitted.