Roblox interview question

Programming questions (C/C++): String search algorithm using predefined word array