UBS Interview Question

Linux commands, SQL query output.