Timken interview question

sql