Surescripts interview question

How to do Table join