Trifacta Interview Question

There were two coding interviews. They ask you to either reverse a string, sort merged arrays or find the second largest number in an array. The other round is also a little bit of coding with some test cases mainly Junit.