This is Savant syndrome. The person has the ability to perform feats that few others can accomplish, but these tend to be relegated to a single area of expertise. Other tasks, many of which would almost be considered rudimentary, seem to elude the person's grasp.