Implement a record() function that returns a String in the form: index [status] message, where each item is passed into record() as a parameter. record() should add a line break (\n) at the end of the String.
record()
String
index [status] message
\n