Create 229C.cpp

Contest 229 Problem C.
Preprocessing and then answering queries.
cin inside while
changing the pointer to a string to store from different place
cin accepts strings till spaces