Umang Goel's submission of Check Algorithm | CodeChef