Yash Kulkarni's submission of Check Algorithm | CodeChef