Infosys interview question

static and final