PwC interview question

Duplicate check, null check , primary key