Problem Link: FLOW001 Problem - CodeChef
the solution was already provided please reconsider the problem