Digit Insurance interview question

SQL command and about my project