RJ Softwares interview question

write a code for database connection