Akash Jain's submission of Check Algorithm | CodeChef