Assuming they're using C# string sentence = Console.ReadLine(); // Assign input to string string sentenceWords = sentence.Split(' '); // Assign words sequentially into an array Array.Reverse(sentenceWords); // Reverse array Console.WriteLine(String.Join(" ", sentenceWords)); // Show result
C implementation... Copy the sentence into a character array. Reverse all the characters in the array, then reverse the characters for each word. Word separator is space.
I was unable to complete due to my nervousness and lack of preparation which ultimately led to them not calling back for the last interview. Eclipse was used during the technical interview and a person sits in front you watching you code via screen share.
Can you share what six questions you were asked for the technical interview?