Jash's submission of Check Algorithm | CodeChef