Nothing interview question

oops sql java exceptions loops