If you only remain in terminal transit area you don't need a visa. If you plan to leave the terminal between your two flights and go outside airport you will need some kind of visa - Tourist, or Transit depending on the country you are stopping over.