Mateusz's submission of K Path Query | CodeChef