useref object is possibly null

Solutions on MaxInterview for useref object is possibly null by the best coders in the world