Parasoft interview question

Questions on the coding exercise that was given earlier