Inverse Rule for Continuous Mappings to Topological Group