IDZ Digital interview question

1)Explain the code? 2)OOPS concept