Company: thoughtworks_9oct
Difficulty: medium
Stupid AI Robot Problem Description AI products are extremely popular in people's daily life, now it can even help us with creative work. You are wondering how these AI products were designed. So you decided to simulate them to generate a simple application (The AI robot) to respond to people's questions. You have designed the responses to the different cases as below. Your task is to implement the answer function for this 'Stupid AI' robot so it can handle these different kinds of questions according to the specified rules. import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.function.*; import java.util.regex.*; import java.util.stream.*; import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.toList; class Result { /* * Complete the 'answer' function below. * * The function is expected to return a STRING. * The function accepts STRING question as para