Maruti Suzuki interview question

Basic programming and database questions.