Pergunta de entrevista da empresa Huawei Technologies

Write a function that takes an array of numbers and returns each number reversed. Write an SQL query that returns the average salary of employees in two separate tables