Cyber Solution interview question

Reading 2 scripts and figure out what they do