Company: thoughtworks_9oct
Difficulty: medium
Stupid AI Robot Problem Description Chat-based AI tools have become part of everyday life, showing up even in creative work, and it's natural to wonder how they're actually built under the hood. So here you'll build a toy version yourself: a simple application (the AI robot) that responds to whatever question a person types in, following the fixed set of rules described below. Your job is to implement the answer function for this 'Stupid AI' robot so that it handles each kind of question exactly according to the rules given. 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