Pergunta de entrevista da empresa Cisco

A question in C, write a new implementation for the str function. For a question in JAVA, write a new data structure based on identifiers given by the interviewer.