Create a Scala 3 function for the following: def inOrderToList(tree: BinaryTree[A]): List[A]: Returns a list of all items in tree, ordered from left, Root,right. For example, given the tree below, return List(4, 3, 5, 2, 7, 6, 8, 1, 9). Hint: a Helper may be useful. Use this Definition of a BinaryTree:.