pranay varma's submission of Check Algorithm | CodeChef