Infosys interview question

String, array, Tree traversal questions