HINT:
 

It is not a good idea to return a pointer to local var.