Divyansh 's submission of Check Algorithm | CodeChef